package com.xh.clean.modular.clean.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.xh.clean.modular.clean.Vo.PatrolVo;
import com.xh.clean.modular.clean.model.Patrol;
import com.baomidou.mybatisplus.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 巡视表 服务类
 * </p>
 *
 * @author 杨杰123
 * @since 2018-06-24
 */
public interface IPatrolService extends IService<Patrol> {
    /**
     * 查询巡查记录
     * @param page
     * @param beginTime
     * @param endTime
     * @param orderByField
     * @param asc
     * @return
     */
    List<Map<String,Object>> selectPatrols(Page<Patrol> page, String beginTime, String endTime, String orderByField, boolean asc);
    List<Map<String,Object>> selectPatrolsByPatrolVo(Page<PatrolVo> page, PatrolVo patrolVo, String orderByField, boolean asc);
    /**
    * 巡视记录排行榜
    * @Param: [page, patrolVo, orderByField, asc]
    * @return: java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
    * @Author: 杨杰
    * @Date: 2018/9/2  14:54
    */ 
    List<Map<String,Object>> selectPatrolRanking(Page<PatrolVo> page, PatrolVo patrolVo, String orderByField, boolean asc);
}
